import React,{useState} from "react"
import {useTitleHooks} from "../../../components/hook/index"

const Index = ()=>{
  const [titleName,setTitle] = useState("test");
  const title = useTitleHooks(titleName)
  const handleClick = ()=>{
    setTitle("金山")
  }
  return (
    <>
      <h1 onClick={handleClick}>this is customizeIndex {title}</h1>
    </>
  )
}

export default Index